package com.waterworld.watch.common.bean;


import java.util.List;

/**
 * Created by nhuan
 * Time:2019/3/8.
 */

public class CourseBean {

    private static CourseBean courseBean;
    private Integer isCloseInClass;
    private String[] course;
    private List<Time> time;

    public static CourseBean getInstance(){
        if (courseBean == null) {
            synchronized (CourseBean.class) {
                if (courseBean == null) {
                    courseBean = new CourseBean();
                }
            }
        }
        return courseBean;
    }

    public Integer getCloseInClass() {
        return isCloseInClass;
    }

    public void setCloseInClass(Integer closeInClass) {
        isCloseInClass = closeInClass;
    }

    public String[] getCourse() {
        return course;
    }

    public void setCourse(String[] course) {
        this.course = course;
    }

    public List<Time> getTime() {
        return time;
    }

    public void setTime(List<Time> time) {
        this.time = time;
    }

    public static class Time {
        private String startTime;
        private String endTime;

        public Time(String startTime,String endTime){
            this.startTime = startTime;
            this.endTime = endTime;
        }
        public String getStartTime() {
            return startTime;
        }

        public void setStartTime(String startTime) {
            this.startTime = startTime;
        }

        public String getEndTime() {
            return endTime;
        }

        public void setEndTime(String endTime) {
            this.endTime = endTime;
        }
    }

}
